package cn.donting.jme.event;

import cn.donting.jme.handle.EvenHandle;
import cn.donting.jme.ioc.IocContainer;
import com.google.common.eventbus.EventBus;

import java.util.List;

public class EditorEventBus extends EventBus {


    public EditorEventBus(IocContainer iocContainer) {
        List beansByAnnotation = iocContainer.getBeansByAnnotation(EvenHandle.class);
        for (Object o : beansByAnnotation) {
            register(o);
        }
    }
}
